package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_day_logs",schema = "")
public class TableDayLogs {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  @Column(name = "status")
  private Long status;

  //员工姓名
  @Column(name = "user_name")
  private String userName;

  //部门编码
  @Column(name = "department_code")
  private String departmentCode;

  //部门名称
  @Column(name = "department_name")
  private String departmentName;

  //职务
  @Column(name = "position")
  private String position;

  //日志
  @Column(name = "day_logs")
  private String dayLogs;

  //受理人编号
  @Column(name = "receiver_people_code")
  private String receiverPeopleCode;

  //受理人
  @Column(name = "receiver_people")
  private String receiverPeople;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "update_date")
  private Date updateDate;

  //null
  @Column(name = "update_user_id")
  private Long updateUserId;

  //null
  @Column(name = "update_user_name")
  private String updateUserName;

  //null
  @Column(name = "tenant_id")
  private Long tenantId;

  //项目名称
  @Column(name = "pro_name")
  private String proName;

  //项目编码
  @Column(name = "pro_code")
  private String proCode;

  //1.日志 2.外出及日志
  @Column(name = "day_log_type")
  private Long dayLogType;

  //出发地
  @Column(name = "cf_address")
  private String cfAddress;

  //目的地
  @Column(name = "md_address")
  private String mdAddress;

  //外出时间
  @Column(name = "out_time")
  private String outTime;

  //返回时间
  @Column(name = "in_time")
  private String inTime;

  //日志时间
  @Column(name = "day_log_time")
  private String dayLogTime;

  //交通工具
  @Column(name = "vehicle")
  private String vehicle;

  //费用金额
  @Column(name = "money")
  private BigDecimal money;

  //当天工作时长
  @Column(name = "day_work_time")
  private BigDecimal dayWorkTime;

  //服务用户
  @Column(name = "service_user")
  private String serviceUser;

  //服务用户编码
  @Column(name = "service_user_code")
  private String serviceUserCode;

  //备注(服务事由)
  @Column(name = "misc")
  private String misc;


}
